/*

Author   : chaos

FileName : alias.cpp

Date     : 17/08/17 01:22:29

*/
#include <iostream>
using namespace std;

namespace Person
{
    void Hello() { cout << "Hello everyone " << endl; }

    namespace John
    {
        int age = 35;

        void Hello() {cout << "Hello namespace John!" << endl;}
    }
}



int main(int argc ,char *argv[])
{
    namespace P = Person;
    namespace J = Person::John;

    namespace PJ = Person::John;

    P::Hello();

    cout << "J::age =" << J::age << endl;

    PJ::Hello();

    return 0;
}
